﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FinalTestMachine.Motion.Aixs
{
    /// <summary>
    /// 插补创建的基类
    /// </summary>
    public abstract class LineAixCreateBase : AbstractLineAixsdll.LineAixsZCreateBase, ISaveReaddll.ISaveRead
    {
        public LineAixCreateBase(AbstractSingleAixdll.AbstractSingleAix singleAix1,
            AbstractSingleAixdll.AbstractSingleAix singleAix2, AbstractSingleAixdll.AbstractSingleAix singleAix3) :
            base(singleAix1, singleAix2, singleAix3, new ZMotionHelper.LineAixs.ZMotionLineAixsFactory())
        {
            SaveRead = new SaveReaddll.SaveReadHeler(() => ParamPath_Motion.CurFileFullPath, () => this);
        }

        SaveReaddll.SaveReadHeler SaveRead;

        public void Read()
        {
            SaveRead.Read();
        }

        public void Save()
        {
            SaveRead.Save();
        }
    }
}
